package com.cn.sys.main.entity;

import java.util.Date;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import com.cn.sys.frame.util.CustomDateTimeSerializer;

public class SysOrgan {

	private Long id;
	private String name;
	private String code;
	private String linkman;
	private String officeTel;
	private Date createTime;
	private String createUser;
	private Date updateTime;
	private String remark;
	private Long parentId;
	
	public SysOrgan(){
		
	}

	public SysOrgan(Long id, String name, String code, String linkman,
			String officeTel, Date createTime, String createUser,
			Date updateTime, String remark, Long parentId) {
		this.id = id;
		this.name = name;
		this.code = code;
		this.linkman = linkman;
		this.officeTel = officeTel;
		this.createTime = createTime;
		this.createUser = createUser;
		this.updateTime = updateTime;
		this.remark = remark;
		this.parentId = parentId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getLinkman() {
		return linkman;
	}

	public void setLinkman(String linkman) {
		this.linkman = linkman;
	}

	public String getOfficeTel() {
		return officeTel;
	}

	public void setOfficeTel(String officeTel) {
		this.officeTel = officeTel;
	}

	@JsonSerialize(using = CustomDateTimeSerializer.class)
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	@JsonSerialize(using = CustomDateTimeSerializer.class)
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}
	
}
